package com.sdruixinggroup.mondayb2b.ui;

import android.widget.TextView;

import com.sdruixinggroup.mondayb2b.R;
import com.sdruixinggroup.mondayb2b.adapter.QuickAdapter;
import com.sdruixinggroup.mondayb2b.models.SearchHistory;

/**
 * Created by tangjie on 2017/11/12.
 */

public class SearchAdapter extends QuickAdapter<SearchHistory> {

    @Override
    public int getLayoutID(int viewType) {
        return R.layout.search_customer_history_adapter;
    }

    @Override
    public void convert(VH holder, SearchHistory itemData, int position) {
        TextView tvName =  holder.getView(R.id.tv_name);
        tvName.setText(itemData.name);
    }
}
